home *** CD-ROM | disk | FTP | other *** search
/ Champak 74 / Volume 74 My Disc - Damaged.iso / Games / rufus.swf / scripts / DefineSprite_1174 / frame_511 / DoAction.as
Text File  |  2008-08-08  |  587b  |  25 lines

  1. Obs = 4;
  2. set("/Variables:ObsActif",4);
  3. Random = random(10) + 1;
  4. if(Random != 3 and Random != 2)
  5. {
  6.    set("/Variables:ObsActif",Random);
  7. }
  8. set("/Variables:Obs" + Obs + "Active",true);
  9. tellTarget("_root.Game.Obstacle" + Obs)
  10. {
  11.    gotoAndStop(eval("/Variables:ObsActif"));
  12. }
  13. tellTarget("_root.Game.Obstacle" + Obs + "Bg")
  14. {
  15.    gotoAndStop(eval("/Variables:ObsActif"));
  16. }
  17. tellTarget("_root.Game.Obstacle" + Obs + "Mid2")
  18. {
  19.    gotoAndStop(eval("/Variables:ObsActif"));
  20. }
  21. tellTarget("_root.Game.Obstacle" + Obs + "Mid")
  22. {
  23.    gotoAndStop(eval("/Variables:ObsActif"));
  24. }
  25.